package com.huakang.controller;

import com.github.pagehelper.PageInfo;
import com.huakang.entity.Sickroom;
import com.huakang.service.SickroomService;
import com.huakang.utils.ResultVo;
import com.huakang.utils.SeeadoctorVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sickroom")
public class SickroomController {
    @Autowired
    SickroomService sickroomService;
    @GetMapping("/getAll")
    public ResultVo getAll(){
        List<Sickroom> list = sickroomService.getAll();
        return ResultVo.success("查询成功",list);
    }
    @GetMapping("/getKey")
    public ResultVo getKey(Integer srid){
        Sickroom sickroom=sickroomService.getKey(srid);
        return  ResultVo.success("",sickroom);
    }
}
